package com.jqb.spring.manager;

import com.jqb.spring.dao.UserDao;

public class UserManagerImpl implements UserManager {

	private UserDao userDao;
//	public UserManagerImpl(UserDao userDao){
//		this.userDao=userDao;
//	}
	//一般用setter方法,而不是构造方法
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	public void save(String name, String password) {
		this.userDao.save(name, password);
	}

	
}
